/* universal stylesheet */

:root{
    --bg-color: #130f1a;
    --transition-color: #0d0717;
    --footer-color: #0d0a12;
    --aside-color: #0a070e;
    --nav-color: #0d0a12;
    --hovere-color: #191421;
    --text-color: #f2f2f2;
    --mail-color: #5f86cf;
}

.lightmode{
    --bg-color: #ffffff;
    --transition-color: #f9f7fc;
    --footer-color: #f6f9ff;
    --aside-color: #eaeff8;
    --nav-color: #f6f9ff;
    --hovere-color: #f9f7fc;
    --text-color: #3C4043;
    --mail-color: #5f86cf;
}


* {
    font-family: 'Raleway';
}

body {
    background-color: var(--bg-color);
    height: 100vh;
    margin-left: 0px;
}

h1 {
    color: var(--text-color);
    font-size: 90px;
    text-decoration: bold;
    margin: 0;
}

.in {
    position: relative;
    float: right;
    height: 50px;
    padding: 12px;
    z-index: 2;
}

p {
    color: var(--text-color);
    font-family: 'Raleway';
}

.mail {
    margin: auto;
    color: var(--mail-color);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.mail::after {
    opacity: 0.75;
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--mail-color);
    transition: width 0.4s ease, left 0.4s ease;
}

.mail:hover::after {
    width: 100%;
    left: 0;
}

.footer {
    margin-top: auto;
    position: fixed;
    min-height: 10px;
    max-height: 70px;
    width: 100%;
    left: 0;
    bottom: 0;
    background-color: var(--footer-color);
    opacity: 0;
    animation: slideInTop 1s forwards;
    animation-delay: 0.5s;
}

.footer > p {
    width: 100%;
    position: absolute;
    text-align: center;
    font-size: 22px;
    display: flex;
}

@keyframes slideInTop {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
  
    to {
        transform: translateX(0);
        opacity: 1;
    }
  }

/* navigation styling */

#aside{
    height: 100%;
    width: 10%;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: var(--aside-color);
    padding-top: 20px;
    padding-left: 5px;
    text-align: center;
}

.nav{
    font-family: 'Raleway';
    color: var(--text-color);
    border: 1px solid;
    padding: 5px;
    margin: 5px;
    margin-bottom: 20px;
    margin-top: 10px;
    text-align: center;
    border-radius: 10px;
    width: 90%;
    background-color: var(--nav-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    animation-delay: 0.5s;
}

.nav:hover {
    background-color: var(--hovere-color);
}

.gray-out {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.aside {
    opacity: 0;
    animation: slideInLeft 1s forwards;
}

/* Mobile Compatibility */

@media screen and (max-width: 1024px) {
    #aside {
        height: 50px;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10;
        padding: 10px;
    }

    #aside aside {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
    }

    #aside .navigation {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

    #aside .nav {
        flex: 1;
    }

    .aside {
        opacity: 0;
        animation: slideInDown 1s forwards;
    }

    .nav {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        padding: 5px 15px;
        box-sizing: border-box;
        margin-top: 0;
    }
  }

@media screen and (max-width: 1024px) {
    h1 {
    font-size: 60px;
    margin-top: 80px;
    }
    
}


@keyframes slideInLeft {
from {
    transform: translateX(-300px);
    opacity: 0;
}

to {
    transform: translateX(0);
    opacity: 1;
}
}

@keyframes slideInDown {
    from {
        transform: translateY(-300px);
        opacity: 0;
    }
    
    to {
        transform: translateY(0);
        opacity: 1;
    }
    }

/* page transitions. hell on earth */
.transition-1 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 101;
    background-color: var(--transition-color);
    opacity: 0;
    pointer-events: none;
    transition: 0.5s ease-out;
}

.transition-1.is-active {
    opacity: 1;
    pointer-events: all;
}

.transition-2 {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    right: 0;
    bottom: 0;
    z-index: 101;
    background-color: var(--transition-color);
    transition: 0.5s ease-out;
}

.transition-2.is-active {
    left: 0;
}

.transition-3 {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    z-index: 101;
    background-color: var(--transition-color);
    transition: left 0.5s ease-out;
}

.transition-3.is-active {
    left: 0;
}

.transition-4 {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 101;
    background-color: var(--transition-color);
    transition: top 0.5s ease-out;
}
  
.transition-4.is-active {
    top: 0;
}
  
.transition-5 {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 101;
    background-color: var(--transition-color);
    transition: top 0.5s ease-out;
}
  
.transition-5.is-active {
    top: 0;
}


/* animation for title on pages👎👎👎👎👎👎👎👎👎👎 */

#page-title-container {
    display: flex;
    justify-content: center;
    margin-left: 10%;
}

#page-title {
    position: relative;
    margin-top: 0;
    color: nav(--text-color);
    cursor: default;
    display: inline-block;
}

#page-title::after {
    opacity: 0.25;
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 5px;
    background-color: nav(--text-color);
    border-radius: 2.5px;
    transition: width 0.6s ease, opacity 0.6s ease;
}

#page-title:hover::after {
    width: 90%;
    opacity: 0.95;
}

/* light/dark mode switch, because everybody is going to be using this */

#theme-switch {
    height: 50px;
    width: 50px;
    padding: 0;
    border-radius: 50%;
    background-color: var(--nav-color);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 40px;
    left: 20px;
}

#theme-switch svg {
    fill: var(--text-color)
}

#theme-switch svg:last-child{
    display: none;
}

.lightmode #theme-switch svg:first-child {
    display: none;
}

.lightmode #theme-switch svg:last-child {
    display: block;
}